package com.glory.eapequipmentmonitor.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author hx
 * @date 2019/6/18
 * @desc
 */
public class LotBean implements Serializable {

    private String LOTID;
    private String SCRAPTOTALQTY;
    private List<ScrapBean> SCRAPS;
    private boolean isWrite;

    public LotBean() {
    }

    public LotBean(String LOTID, String SCRAPTOTALQTY, List<ScrapBean> SCRAPS) {
        this.LOTID = LOTID;
        this.SCRAPTOTALQTY = SCRAPTOTALQTY;
        this.SCRAPS = SCRAPS;
    }

    public boolean isWrite() {
        return isWrite;
    }

    public void setWrite(boolean write) {
        isWrite = write;
    }

    public String getLOTID() {
        return LOTID == null ? "" : LOTID;
    }

    public void setLOTID(String LOTID) {
        this.LOTID = LOTID;
    }

    public String getSCRAPTOTALQTY() {
        return SCRAPTOTALQTY == null ? "" : SCRAPTOTALQTY;
    }

    public void setSCRAPTOTALQTY(String SCRAPTOTALQTY) {
        this.SCRAPTOTALQTY = SCRAPTOTALQTY;
    }

    public List<ScrapBean> getSCRAPS() {
        return SCRAPS == null ? new ArrayList<ScrapBean>() : SCRAPS;
    }

    public void setSCRAPS(List<ScrapBean> SCRAPS) {
        this.SCRAPS = SCRAPS;
    }
}
